	function sendMobileCode(){
		if(checkTel()){
			var mobile = $("#phone").val();
			$.ajax({
				type:"get",
				url:"/api/login/sendRegSMS",
				async:true,
				dataType:"json",
				data:{"tel":mobile},
				success:function(data){
					//var data = JSON.parse(data);
		            console.log(data);
				}
			})
		}
	}
	function forget(){
		var phone = $("#phone").val();
		var code=$("#code").val();
		var userPwd=md5($('#password').val());
		var psdRe=md5($('#passwordRepeat').val());
		$.ajax({
			tyoe:"get",
			url:"/api/login/forget",
			async:true,
			dataType:"json",
			data:{"phone":phone,"password":userPwd,"code":code,"password1":psdRe},
			success:function(data){
				
			}
		})
	}
	function checkTel() {
	    var isPhone = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
	    var isMob = /^((\+?86)|(\(\+86\)))?(13[0123456789][0-9]{8}|17[0123456789][0-9]{8}|15[0123456789][0-9]{8}|18[0123456789][0-9]{8}|147[0-9]{8}|1349[0-9]{7})$/;
	    var value = document.getElementById("phone").value.trim();
	    if (isMob.test(value) || isPhone.test(value)) {
	        return true;
	    } else {
	       alert("请输入正确的手机号码");
	        return false;
	    }
	}
